import axios from 'axios';

export function login(username: string, password: string) {
  return axios.post('/api/auth/login', { username, password });
}

export function register(userName: string, password: string) {
  return axios.post('/api/user/register', { userName, password });
} 